package com.tt.dp.command;

import com.tt.dp.command.model.Hottub;

public class HottubOffCommand implements Command{

    private Hottub hottub;

    public HottubOffCommand(Hottub hottub) {
        this.hottub = hottub;
    }

    public void execute() {
        this.hottub.close();
    }

    public void undo() {
        this.hottub.open();
    }
}
